<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a="http://richfaces.org/a4j"
    template="/layout/templateInternet.xhtml">
    
<ui:define name="body">

<a:loadScript src="js/sw-util.js" />

<script>
{
	window.open ("etCastSW?et=#{candidato.id}","Boleto", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=800");
}
</script>
    <a:form id="PreCadastroCandidatoForm">

        <rich:panel>
            <f:facet name="header">#{messages.confirmacaoPreInscricao}</f:facet>
            
		    <rich:panel>
               <s:link view="/etCastSW?et=#{candidato.id}" propagation="end" >
               	<img src="img/imprimir-boleto2.jpeg" />
               </s:link>  
               <br />
				#{messages.infoBoletoPDF}                         
		    </rich:panel>

            <s:decorate id="nomeField" template="/layout/display.xhtml">
                <ui:define name="label">Nome</ui:define>
                <h:outputText id="nomeFieldId" value="#{candidato.nome}" />
            </s:decorate>

            <s:decorate id="numeroPreInscrisaoField" template="/layout/display.xhtml" rendered="false">
                <ui:define name="label">Numero Pre Inscricao</ui:define>
                <h:outputText id="numeroPreInscrisaoFieldId" value="#{candidato.numeroPreInscricao}"  />
            </s:decorate>
            
            <s:decorate id="cargoField" template="/layout/display.xhtml">
                <ui:define name="label">Cargo</ui:define>
                <h:outputText id="cargoFieldId" value="#{candidato.cargo.codigo} - #{candidato.cargo.nome}"  />
            </s:decorate>
            
            <s:decorate id="localidadeField" template="/layout/display.xhtml" rendered="#{candidato.localidade != null}">
                <ui:define name="label">Localidade</ui:define>
                <h:outputText id="localidadeFieldId" value="#{candidato.localidade.codigo} - #{candidato.localidade.nome}"  />
            </s:decorate>
            
            
            <s:decorate id="cpfField" template="/layout/display.xhtml">
                <ui:define name="label">CPF</ui:define>
                <h:outputText id="cpfFieldId" value="#{candidato.cpf}" />
            </s:decorate>
            
            <s:decorate id="enderecoField" template="/layout/display.xhtml">
                <ui:define name="label">#{messages.endereco}</ui:define>
                <h:outputText id="enderecoFieldId" value="#{candidato.endereco}" />
            </s:decorate>
            
            <s:decorate id="cidadeField" template="/layout/display.xhtml">
                <ui:define name="label">Cidade</ui:define>
                <h:outputText id="cidadeFieldId" value="#{candidato.cidade.nome} - #{candidato.cidade.siglaUf}" />
            </s:decorate>
            
            <s:decorate id="cepField" template="/layout/display.xhtml">
                <ui:define name="label">CEP</ui:define>
                <h:outputText id="cepFieldId" value="#{candidato.cep}" />
            </s:decorate>
            
            <s:decorate id="foneField" template="/layout/display.xhtml">
                <ui:define name="label">Fone</ui:define>
                <h:outputText id="dddFoneFieldId" value="(#{candidato.dddFone}) " />
                <h:outputText id="foneFieldId"    value="#{candidato.fone}"    />
            </s:decorate>
            
            <s:decorate id="celField" template="/layout/display.xhtml">
                <ui:define name="label">Celular</ui:define>
                <h:outputText id="dddCelFieldId"  value="(#{candidato.dddCelular}) "  />
                <h:outputText id="celFieldId"     value="#{candidato.celular}"     />
            </s:decorate>
            
            <s:decorate id="qtFilhosField" template="/layout/display.xhtml">
                <ui:define name="label">#{messages.numeroDependentes}</ui:define>
                <h:outputText id="qtFilhosFieldId" value="#{candidato.qtFilho}" />
            </s:decorate>
            
            <s:decorate id="emailField" template="/layout/display.xhtml"   >
                <ui:define name="label">e-mail</ui:define>
                <h:outputText id="emailFieldId-informado" value="#{candidato.email}" rendered="#{ candidato.email ne 'concursopmh@hotmail.com' }" />
                <h:outputText id="emailFieldId-padrao"    value="Nao Informado"      rendered="#{ candidato.email eq 'concursopmh@hotmail.com' }" />
            </s:decorate>
            
            <s:decorate id="dtNascimentoField" template="/layout/display.xhtml">
                <ui:define name="label">Data nascimento</ui:define>
                <h:outputText id="dtNascimentoId" value="#{candidato.dataNascimento}"  >
                	<f:convertDateTime type="date" pattern="dd/MM/yyyy"/>
                </h:outputText>
            </s:decorate>
            
            <s:decorate id="rgField" template="/layout/display.xhtml">
                <ui:define name="label">Registro Geral No</ui:define>
                <h:outputText id="rgFieldId" value="#{candidato.rg}" />
            </s:decorate>
            
            <s:decorate id="estadoCivilField" template="/layout/display.xhtml">
                <ui:define name="label">Estado civil</ui:define>
                <h:outputText value="#{candidato.estadoCivil}" />
            </s:decorate>
            
            <s:decorate id="canhotoField" template="/layout/display.xhtml">
                <ui:define name="label">Canhoto ?</ui:define>
                <h:outputText value="Sim" rendered="#{candidato.canhoto == 'CANHOTO'}" />
                <h:outputText value="Nao" rendered="#{candidato.canhoto == 'DESTRO'}" />
            </s:decorate>

            <s:decorate id="obsField" template="/layout/display.xhtml">
                <ui:define name="label">#{messages.observacoes}</ui:define>
                <h:inputTextarea id="obsFieldId" required="false" value="#{candidato.obs}" rows="10" cols="70" maxlength="255" readonly="true" disabled="true" />
            </s:decorate>
            
            <div style="clear:both"/>

        </rich:panel>

        <div class="actionButtons">
        </div>

    </a:form>

</ui:define>

</ui:composition>
